//
//  MusicKYFViewController.m
//  musicPlayer
//
//  Created by 康迂峰 on 14-3-18.
//  Copyright (c) 2014年 yufeng. All rights reserved.
//

#import "MusicKYFViewController.h"
#import "KYFViewController.h"
#import "KYFAppDelegate.h"
#import "RootViewController.h"

@interface MusicKYFViewController ()

@end

@implementation MusicKYFViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        //self.tabBarItem.title = @"小功能";
        //self.tabBarItem.image = [UIImage imageNamed:@"mendian_sel.png"];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationItem.title = @"小功能";
    self.view.backgroundColor = View_chunk_Color;
    
    self.versions.text = [NSString stringWithFormat:@"%.1f",kSystemVersion];   //系统版本号
    
    
    //当前屏幕尺寸
    CGSize size_screen = [[UIScreen mainScreen]bounds].size;
    
    self.sizeHeight.text = [NSString stringWithFormat:@"%.f",size_screen.height];
    self.sizeWidth.text = [NSString stringWithFormat:@"%.f",size_screen.width];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)dropPush:(id)sender {
//    UIBarButtonItem *returnButtonItem = [[UIBarButtonItem alloc]init];
//    returnButtonItem.title = @"";
//    returnButtonItem.tintColor = [UIColor whiteColor];
//    self.navigationItem.backBarButtonItem = returnButtonItem;
    self.navigationItem.backBarButtonItem.title = @"kkk";
    
    KYFViewController *view = [[KYFViewController alloc]init];
    view.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:view animated:YES];
}

- (IBAction)dropPresent:(id)sender {
    KYFViewController *view = [[KYFViewController alloc]init];
    [self presentViewController:view animated:YES completion:nil];
}

- (IBAction)inputDLog:(id)sender {
    DLog(@"幸红红？");
    [KYFAppDelegate instance].kang = 1;
    RootViewController *roo = [[RootViewController alloc]init];
    [[roo.tabBar.items objectAtIndex:0] setBadgeValue:[NSString stringWithFormat:@"%d",[KYFAppDelegate instance].kang]];
    
}

- (void)dealloc {
    [_versions release];
    [_sizeWidth release];
    [_sizeHeight release];
    [super dealloc];
}
@end
